<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>栅格布局</title>
    <style>
        .Grid {
            display: flex;
            margin-bottom: 10px;
        }

        .Grid-cell {
            height: 55px;
            margin: 0px 5px;
            text-align: center;
            line-height: 55px;
            background-color: #F4F3F0;
            border-radius: 5px;
        }
        .Grid-cell.col-auto{
            flex: 1;
        }
        .Grid-cell.col-full {
            flex: 0 0 99.2%;
        }

        .Grid-cell.col-50 {
            flex: 0 0 50%;
        }

        .Grid-cell.col-25 {
            flex: 0 0 25%;
        }

        .Grid-cell.col-33 {
            flex: 0 0 33%;
        }
    </style>
</head>
<body>
<div class="Grid">
    <div class="Grid-cell" style="width: 300px">300px</div>
    <div class="Grid-cell col-auto">auto</div>
    <div class="Grid-cell" style="width:180px">180px</div>
</div>
<div class="Grid">
    <div class="Grid-cell col-50">1/2</div>
    <div class="Grid-cell col-auto">auto</div>
    <div class="Grid-cell col-auto">auto</div>
</div>
<div class="Grid">
    <div class="Grid-cell col-auto">auto</div>
    <div class="Grid-cell col-33">1/3</div>
</div>
<div class="Grid">
    <div class="Grid-cell col-25">1/4</div>
    <div class="Grid-cell col-auto">auto</div>
    <div class="Grid-cell col-33">1/3</div>
</div>
<div class="Grid">
    <div class="Grid-cell col-full">full</div>
</div>
</body>
</html>